import { z } from "zod";

const User = z.object({
  username: z.string(),
});

User.parse({ username: "Ludwig" });

// extract the inferred type
/**
 * @typedef {z.infer<typeof User>} User
 */
// { username: string }
